package com.zhiyun.mapper;

import com.zhiyun.domain.Course;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    Course selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(Course record);

    Course selectByInviteCode(String inviteCode);

    List<Course> selectByTeacherId(Integer teacherId);

    List<Course> selectByStuId(Integer stuId);

    Course selectByName(String name);
}